﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuYiAdmin.Net.Entity.BusinessDTO.SystemManagement
{
    /// <summary>
    /// 代码生成器DTO
    /// </summary>
    public class CodeGeneratorDTO
    {
        /// <summary>
        /// 模型层命名空间
        /// </summary>
        public String EntityNamespace { get; set; }

        /// <summary>
        /// 服务层命名空间
        /// </summary>
        public String ServiceNamespace { get; set; }

        /// <summary>
        /// 仓储层命名空间
        /// </summary>
        public String RepositoryNamespace { get; set; }

        /// <summary>
        /// 表数组
        /// </summary>
        public String Tables { get; set; }

        public void AutoFillFullName()
        {
            this.EntityNamespace = "RuYiAdmin.Net.Entity.BusinessEntity." + this.EntityNamespace;
            this.ServiceNamespace = "RuYiAdmin.Net.Service.BusinessService." + this.ServiceNamespace;
            this.RepositoryNamespace = "RuYiAdmin.Net.Repository.BusinessRepository." + this.RepositoryNamespace;
        }
    }
}
